package com.bootcamp.s2_0922.ds._0926;

/**
 * @program: myClassCode
 * @description:
 * @author: Keyu Li
 * @create: 2021-09-25 20:18
 **/


import java.util.Scanner;

public class HW03 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("input 3 Integer: ");
        int num = input.nextInt();
        int c = HW03.calc(num);
        System.out.println(c);

    }
    public static int calc(int num){
        int gw = num%10;
        int sw = num/10%10;
        int bw = num/100%10;
        int sum=gw+sw+bw;
        return sum;
    }
}
